package xiangmu2;

public class Egg {

	private int eggnumber;
	private int life;
	public Egg() {
		
	}
	public Egg(int eggnumber, int life) {
		
		this.eggnumber = eggnumber;
		this.life = life;
	}
	public int geteggnumber() {
		return eggnumber;
	}
	public int getLife() {
		return life;
	}
	public void seteggnumber(int eggnumber) {
		this.eggnumber = eggnumber;
	}
	public void setLife(int life) {
		this.life = life;
	}
	@Override
	public String toString() {
		return "Egg [eggnumber=" + eggnumber + ", life=" + life + "]\n";
	}
	
	
	
	
	
}
